<template>
   <div class="input">
      <el-input v-model="input" :placeholder="placeholder" @blur="getVal"/>
   </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const input = ref('')

defineProps({
   placeholder:{
      type:String,
      default:'请输入'
   }
})

let emits = defineEmits(['getInputV'])
const getVal = ()=>{
   // console.log(input,1112);   
   emits('getInputV',input.value)

}

</script>

<style scoped lang="scss">
.input{
   margin-left: 10px;
}

</style>